<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jquery-3.7.1.min.js"></script>
</head>

<body>
    <a href="#" alt="sxt">sxt</a>

    <a href="#" alt="sxt-itbaizhan">sxt-itbaizhan</a>

    <a href="#" alt="sxtitbaizhan">sxtitbaizhan</a>

    <a href="#" alt="itbaizhan">itbaizhan</a>


    <script>
        //属性选择器,匹配包含关系即可 匹配sxt 
        $("a[alt*='sxt']").css("border","2px solid red")
      
    </script>
</body>

</html>